﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Manager.Master" AutoEventWireup="true"
    CodeBehind="ProvicesManager.aspx.cs" Inherits="Bilyteam_Website.Admin.WebForm3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link rel="stylesheet" href="CSS/style.css" type="text/css" />
    <section>
        
    <div class="provices">
        <p>
        <label>ID</label>
        <asp:TextBox ID="txtproviceid" runat="server" required></asp:TextBox>

    </p>
        <p >
       
       
        <label>Provices</label>
        <asp:TextBox ID="txtprovicename" runat="server" required></asp:TextBox>
    </p>
    <p class="btnsave">
        <asp:Button ID="btnsave" runat="server" Text="Add" onclick="btnsave_Click" CssClass="blue"></asp:Button>
    </p>
    </div>
    
    <div class="info-provices">
    </div>
    <div id="proviceslist"> 
        <asp:DataList ID="dtlprovices" runat="server" oneditcommand="Edit_Provice" 
            ondeletecommand="Delete_Provice" DataKeyField="ProviceID">
            <HeaderTemplate>
                                    <table class="viewTables">
                                        <tr class="head">
                                            <th style="width: auto">
                                                Edit</th>
                                            <th style="width: auto">
                                                Delete</th>
                                            <th style="width: auto">
                                                ID</th>
                                            <th style="width: 200px">
                                                Name</th>
                                            <th style="width: 100px">
                                                Status</th>
                                            </tr>
                                </HeaderTemplate>
            <ItemTemplate>
               <tr class="managerlist">
                    <td>
                        <asp:LinkButton ID="lbnedit" runat="server" CommandName="Edit">Edit</asp:LinkButton>
                    </td>
                    <td>
                        
                        <asp:LinkButton ID="lbtdeleted"  runat="server" CommandName="Delete">Deleted</asp:LinkButton>
                    </td>
                    <td>
                        <asp:Label ID="lbid" runat="server" Text='<%# Eval("ProviceID") %>' ></asp:Label>
                    </td>
                   
                    <td>
                        <%#Eval("ProviceName")%>
                    </td>
                    <td>
                        <%#Eval("Status")%>
                    </td>
                </tr>
                
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:DataList>
    </div>

    </section>
</asp:Content>
